/** 短信或邮件模板 */
import request from '@/utils/request'
/** 新增
 * @params {object} data
 */
export function postMessageTemplate(data) {
  return request({
    method: 'POST',
    url: '/call-center/api/v1/messageTemplate',
    data
  })
}
/** 修改
 * @params {object} data
 */
export function putMessageTemplate(data) {
  return request({
    method: 'PUT',
    url: '/call-center/api/v1/messageTemplate',
    data
  })
}
/** 查询所有
 */
export function getMessageTemplate() {
  return request({
    method: 'GET',
    url: '/call-center/api/v1/messageTemplate/'
  })
}
/** 删除
 * @params {number} id
 */
export function deleteMessageTemplate(id) {
  return request({
    method: 'DELETE',
    url: `/call-center/api/v1/messageTemplate/${id}`
  })
}
/** 删除
 */
export function postPage(data) {
  return request({
    method: 'POST',
    url: `/call-center/api/v1/messageTemplate/page`,
    data
  })
}
